// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
//导入elementui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

//导入axios
import axios from 'axios'
import VueAxios from 'vue-axios'



//导入路由表
import router from './router/index';

import App from './App'

//全局注册Element
Vue.use(ElementUI);
//注册axois
Vue.use(VueAxios, axios)

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,//等价于router:router
  components: { App },
  template: '<App/>'
})
